import request from "@/request/";

// 容器类型列表
export const getList = (data) => {
  return request({
    url: "/api/mes-production-service/container-type/page",
    method: "POST",
    data,
  });
};

// 容器类型 - 新增
export const containerTypeSave = (data) => {
  return request({
    url: "/api/mes-production-service/container-type/save",
    method: "POST",
    data,
  });
};

// 容器类型-启用
export const containerTypeEnable = (data) => {
  return request({
    url: "/api/mes-production-service/container-type/enable",
    method: "POST",
    data,
  });
};

// 容器类型-禁用
export const containerTypeDisable = (data) => {
  return request({
    url: "/api/mes-production-service/container-type/disable",
    method: "POST",
    data,
  });
};

// 容器类型 - 删除
export const containerTypeDelete = (data) => {
  return request({
    url: "/api/mes-production-service/container-type/delete",
    method: "POST",
    data,
  });
};

// 容器类型与物料关系列表
export const getMaterialList = (data) => {
  return request({
    url: "/api/mes-production-service/cont-type-in-material/page",
    method: "POST",
    data,
  });
};

// 容器类型与物料关系 - 新增
export const materialSave = (data) => {
  return request({
    url: "/api/mes-production-service/cont-type-in-material/save",
    method: "POST",
    data,
  });
};

// 容器类型与物料关系 - 编辑
export const materialUpdate = (data) => {
  return request({
    url: "/api/mes-production-service/cont-type-in-material/update",
    method: "POST",
    data,
  });
};

// 容器类型与物料关系 - 删除
export const materialDelete = (data) => {
  return request({
    url: "/api/mes-production-service/cont-type-in-material/delete",
    method: "POST",
    data,
  });
};

// 容器类型与物料关系-启用
export const materialEnable = (data) => {
  return request({
    url: "/api/mes-production-service/cont-type-in-material/enable",
    method: "POST",
    data,
  });
};

// 容器类型与物料关系-禁用
export const materialDisable = (data) => {
  return request({
    url: "/api/mes-production-service/cont-type-in-material/disable",
    method: "POST",
    data,
  });
};
